package top.dreamlove.demo;

import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;

public class Test {
    public static void main(String[] args) {
        // ScheduledExecutorService s = Executors.newScheduledThreadPool(1);
        // s.scheduleWithFixedDelay(() -> {
        //     System.out.println(System.currentTimeMillis());
        // },1,3, TimeUnit.SECONDS);
        // //关闭
        // s.shutdownNow();
        for (int i = 0; i < 5; i++) {
            System.out.print("\r");
            System.out.print("结果是" + i);
        }
    }
}
